package com.gms.service.impl;

import com.gms.dao.UserInfoDao;
import com.gms.domain.UserInfo;
import com.gms.service.UserInfoService;

public class UserInfoServiceImpl implements UserInfoService{

	private UserInfoDao userInfoDao;
	
	
	public UserInfoDao getUserInfoDao() {
		return userInfoDao;
	}

	public void setUserInfoDao(UserInfoDao userInfoDao) {
		this.userInfoDao = userInfoDao;
	}

	@Override
	public UserInfo checkUserName(String userInfoName) {
		// TODO Auto-generated method stub
		return userInfoDao.checkUserName(userInfoName);
	}

	@Override
	public void register(UserInfo userInfo) {
		// TODO Auto-generated method stub
		userInfoDao.register(userInfo);
	}

	@Override
	public UserInfo login(UserInfo userInfo) {
		// TODO Auto-generated method stub
		return userInfoDao.login(userInfo);
	}

	@Override
	public UserInfo findUserInfoById(Integer userInfoId) {
		// TODO Auto-generated method stub
		return userInfoDao.findUserInfoById(userInfoId);
	}



	@Override
	public void saveItemOrOrder(UserInfo userInfo) {
		// TODO Auto-generated method stub
		userInfoDao.saveOrUpdate(userInfo);
	}

}
